/**
 * Copyright (c)  2016.
 * All rights reserved.
 * IDEntity  16/11/8 22:00
 */
package com.ueboot.weishop.entity;


/**
 * 描述:IDEntity 模型基类
 *
 * @author ziv 2016年11月15日
 * @since 1.0
 */

import com.ueboot.weishop.entity.listener.BaseEntityListener;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@MappedSuperclass
@EntityListeners(BaseEntityListener.class)
public abstract class IDEntity implements Serializable {

    /**
     * 首次插入时间
     */
    @Column(name = "FIRST_INSERT", nullable = false,columnDefinition = "DATE COMMENT '首次插入时间'")
    protected Date firstInsert;

    /**
     * 最后修改时间
     */
    @Column(name = "LAST_MODIFIED",columnDefinition = "DATE COMMENT '最后修改时间'")
    protected Date lastModified;


}
